package com.bigger.arch.app.customer.controller;

import com.bigger.arch.app.customer.client.IUserClient;
import com.bigger.arch.app.repository.model.UserModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserClient userClient;

    @RequestMapping("/getItem")
    public UserModel getItem(Integer id) {

        return userClient.getItem(id);
    }
}
